/**
 * This code is released under lgpl v3 license.
 * All rights reserved.
*/

package flash.display;

import bridge.FABridge;
import com.google.gwt.core.client.JavaScriptObject;

/**
 *
 * @author yuan yunchang    dukerr@gmail.com
 */
public class Sprite extends DisplayObjectContainer{
    static String className = "flash.display.Sprite";
    protected Sprite() {
    }
    public static final  Sprite createSprite(String bridgeName){
        return (Sprite)(FABridge.get().getInstance(bridgeName).create(className));
    }
    public final native Graphics getGraphics()/*-{
    return this.getGraphics()
    }-*/;
    public final native void setX(int x)/*-{
    this.setX(x)
    }-*/;
    public final native void setY(int y)/*-{
    this.setY(y)
    }-*/;
    public final native void setRotation(double rotation)/*-{
    this.setRotation(rotation)
    }-*/;
    public final native double getRotation()/*-{
    return this.getRotation()
    }-*/;
}
